// MyFamily - XML based genealogy program.
// Copyright (C) 2006  Doug Swisher
// See the file COPYING.txt for license details.

using System;
using System.Collections.Generic;
using System.Text;


namespace DataModel
{
    public class FamilyResultsBase : ResultsBase
    {
        private int individualCount;
        private int personaCount;
        private int sourceCount;
        private int extractCount;


        public void SetCounts(FamilyInfo info)
        {
            this.individualCount = info.Individuals.Count;
            this.personaCount = info.Personas.Count;
            this.sourceCount = info.Sources.Count;
            this.extractCount = info.Extracts.Count;
        }


        public int IndividualCount
        {
            get { return this.individualCount; }
        }


        public int PersonaCount
        {
            get { return this.personaCount; }
        }


        public int SourceCount
        {
            get { return this.sourceCount; }
        }


        public int ExtractCount
        {
            get { return this.extractCount; }
        }

    }
}
